package client;
import java.io.File;
import java.io.IOException;


public class MainClient {
	private static String host = "127.0.0.1";

	private static String port1 = "Coucou";

	private static int port = 2100;
	private static String username = "admin";
	private static String password = "password";

	public static void main(String[] args) throws IOException, InterruptedException {
		//SimpleFTPClient sftp1 = new SimpleFTPClient();
		SimpleFTPClient sftp2 = new SimpleFTPClient();
		
		//sftp1.connect(host, port);
		sftp2.connect(host, port, username, password);
		
		System.out.println(sftp2.pwd());
		
		System.out.println(sftp2.list());
		
		File f = new File("/Users/lom/Documents/Enseignement/P10/2011-2012/SystReseau-M1A/svnStructure.txt");
		sftp2.stor(f);
		
		System.out.println(sftp2.list());
		//sftp1.disconnect();
		sftp2.disconnect();
	}
}